package com.webmuseum.client;

import java.util.HashMap;
import java.util.List;

public class VocabularyManager 
{
	private static VocabularyManager mInstance = null;
	private HashMap<String, List<String>> mVocabularyMap;
	
	
	private VocabularyManager()
	{
		mVocabularyMap = new HashMap<String, List<String>>();
	}
	
	public static VocabularyManager getInstance()
	{
		if(mInstance == null)
		{
			mInstance = new VocabularyManager();	
		}
		return mInstance;
	}
	
	public List<String> getVocabulary(String aFieldName)
	{
		return mVocabularyMap.get(aFieldName);
	}
	
	public void addVocabulary(String aFieldName, List<String> aVocabularyList)
	{
		mVocabularyMap.put(aFieldName, aVocabularyList);
	}
	
	public void removeVocabulary(String aFieldName)
	{
		mVocabularyMap.remove(aFieldName);
	}
	
}
